﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="CreateTopic.aspx.cs" Inherits="CreateTopic" ValidateRequest="false" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <asp:ValidationSummary ID="ValidationSummary1" runat="server" 
        HeaderText="An Error Has Occured, Please Fix It And Try again."></asp:ValidationSummary>

    <asp:ValidationSummary ID="ValidationSummary" runat="server" 
        HeaderText="An error has occured, please fix it and try again." ValidationGroup="eval"></asp:ValidationSummary>

    <asp:Label runat="server" ID="HeaderLabel"> Header </asp:Label>


    <asp:TextBox ID="HeaderTextBox" runat="server"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" Display="Dynamic" ErrorMessage="Enter a header!"
        ValidationGroup="eval" ControlToValidate="HeaderTextBox" >*</asp:RequiredFieldValidator>


    <asp:TextBox runat="server" ID="ContentTextbox"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" Display="Dynamic" ErrorMessage="Enter the topic content!"
        ValidationGroup="eval" ControlToValidate="ContentTextBox">*</asp:RequiredFieldValidator>

   

    <asp:LinkButton runat="server" ID="CreateButton" OnClick="CreateButton_Click" ValidationGroup="eval"> Create </asp:LinkButton>


</asp:Content>

